<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateCourseBooking extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('course_booking', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->integer('student_id')->comment("学员id");
            $table->integer('dances_id')->comment("课程种类ID");
            $table->integer('dance')->comment("课程ID");
            $table->integer('teacher_id')->comment("教练ID");
            $table->tinyInteger('status')->default(0)->comment("状态 0正常，1取消");
            $table->integer('created_at')->default(0)->comment("预约时间");
            $table->integer('begin_time')->default(0)->comment('上课开始时间');
            $table->integer('end_time')->default(0)->comment('上课截止时间');
            $table->tinyInteger('types')->default(0)->comment("状态 0团课，1私课");
            $table->integer('clear_at')->default(0)->comment("取消时间");
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('course_booking');
    }
}
